﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;
using System.Data;

namespace DataAccess
{
    public class LoaiPhong_Info
    {
        public string tenloaiphong { get; set; }
        public decimal gia { get; set; }
        public int songuoi { get; set; }

        public static List<LoaiPhong_Info> All()
        {
            return CBO.FillCollection<LoaiPhong_Info>(DataProvider.Instance.ExecuteReader("LoaiPhong_GetAll"));
        }
        public static DataSet GetAll()
        {
            try
            {
                return DataProvider.Instance.ExecuteDataset("LoaiPhong_GetAll");
            }
            catch (Exception)
            {
                return null;
            }
        }
    }
}
